<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <head>
        <title>View</title>
    </head>
   <ui:composition template="/templates/template_admin.xhtml">
        <ui:define name="content">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>     
                <h1><h:outputText value="More Vacancy"/></h1>
                <h:panelGrid columns="2">
                    <h:outputLabel value="VacancyID" for="vacancyID" />
                    <h:outputLabel id="vacancyID" value="#{hrmb.vac.vacancyID}" >                
                    </h:outputLabel>
                    <h:outputLabel value="DepartmentID" for="departmentID" />
                    <h:outputLabel id="departmentID" value="#{hrmb.vac.departmentID.name}"  >                   
                    </h:outputLabel>
                    <h:outputLabel value="Title" for="title" />
                    <h:outputLabel id="title" value="#{hrmb.vac.title}"  >
                    </h:outputLabel>
                    <h:outputLabel value="CreateDate" for="createDate" />
                    <h:outputLabel id="createdDate" value="#{hrmb.vac.createdDate}">
                        <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss"/>
                    </h:outputLabel>
                    <h:outputLabel value="Status" for="status" />
                    <h:outputLabel id="status" value="#{hrmb.vac.status}" >                    
                    </h:outputLabel>                   
                    <h:outputLabel value="NumberRequirement" for="numberRequirement" />
                    <h:outputLabel id="numberRequirement" value="#{hrmb.vac.numberRequirement}"/>
                    <h:outputLabel value="Position" for="position" />
                    <h:outputLabel id="position" value="#{hrmb.vac.position}" />   
                                
                    <h:outputLabel value="WorkingPlace" for="workingPlace" />
                    <h:outputLabel id="workingplace" value="#{hrmb.vac.workingPlace}" />
                    
                    <h:outputLabel value="WorkType" for="workType" />
                    <h:outputLabel id="workType" value="#{hrmb.vac.workType}"    />     
                    <h:outputLabel value="MinimumSalary" for="minimumSalary" />
                    <h:outputLabel id="minimumSalary" value="#{hrmb.vac.minimumSalary}"/>
                    
                    <h:outputLabel value="MaximumSalary" for="maximumSalary" />
                    <h:outputLabel id="maximumSalary" value="#{hrmb.vac.maximumSalary}"/>     
                    <h:outputLabel value="Description" for="description" />
                    <h:inputTextarea id="description" value="#{hrmb.vac.description}" style="width: 500px; height: 100px" disabled="true">                    
                    </h:inputTextarea>
                    <h:outputLabel value="SkillRequirement" for="skillRequirement" />
                    <h:inputTextarea id="skillRequirement" value="#{hrmb.vac.skillRequirement}" style="width: 500px; height: 100px" disabled="true">
                    </h:inputTextarea>
                    
                    <h:outputLabel value="Entitlement" for="entitlement" />
                    <h:inputTextarea id="entitlement" value="#{hrmb.vac.entitlement}" style="width: 500px; height: 100px" disabled="true"/>
                    
                    <h:outputLabel value="MinimumAge" for="minimumAge" />
                    <h:outputLabel id="minimumAge" value="#{hrmb.vac.minimumAge}"/>
                    <h:outputLabel value="MaximumAge" for="maximumAge" />
                    <h:outputLabel id="maximumAge" value="#{hrmb.vac.maximumAge}"/>
                    
                    <h:outputLabel value="Gender" for="gender" />
                    <h:selectOneMenu id="gender"
                                     value="#{hrmb.vac.gender}"
                                                 styleClass="text-input medium-input" disabled="true">
                                    <f:selectItem itemLabel="Male" itemValue="#{true}"/>
                                    <f:selectItem itemLabel="Female" itemValue="#{false}" />
                                </h:selectOneMenu>
                    <h:outputLabel value="Degree" for="degree" />
                    <h:outputLabel id="degree" value="#{hrmb.vac.degree}"/>
                    <h:outputLabel value="YearOfExperience" for="yearOfExperience" />
                    <h:outputLabel id="yearOfExperience" value="#{hrmb.vac.yearOfExperience}"/>
                    <h:outputLabel value="ProbationaryPeriod" for="probationaryPeriod" />
                    <h:outputLabel id="probationaryPeriod" value="#{hrmb.vac.probationaryPeriod}"/>
                    <h:outputLabel value="Deadline" for="deadline" />
                    <h:outputLabel id="deadline" value="#{hrmb.vac.deadline}">
                        <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss"/>
                    </h:outputLabel>
                    
                </h:panelGrid>
                <h:commandButton action="ShowSearchVac" value="Back Show"/>
                <br />                
                <h:commandButton action="ListVaca" value="Back List"/>
                <br />            
            </h:form>
        </ui:define>
    </ui:composition>

</html>
